<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>某某家具设计公司企业官网-模板之家</title> ﻿
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta name="viewport"
	content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="alternate icon" type="image/png" href="images/favicon.png">
<link rel='icon' href='favicon.ico' type='image/x-ico' />
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="stylesheet" href="css/default.min.css?t=227" />
<!--[if (gte IE 9)|!(IE)]><!-->
<script type="text/javascript" src="lib/jquery/jquery.min.js"></script>
<!--<![endif]-->
<!--[if lte IE 8 ]>
<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="lib/amazeui/amazeui.ie8polyfill.min.js"></script>
<![endif]-->
<script type="text/javascript" src="lib/handlebars/handlebars.min.js"></script>
<script type="text/javascript" src="lib/iscroll/iscroll-probe.js"></script>
<script type="text/javascript" src="lib/amazeui/amazeui.min.js"></script>
<script type="text/javascript" src="lib/raty/jquery.raty.js"></script>
<script type="text/javascript" src="js/main.min.js?t=1"></script>
</head>
<body>
	<jsp:include page="header.jsp" />
	<section class="index-section">
	<div>
		<span></span> <span></span>
	</div>
	<div class="index-content">
		<section class="index-content-section-first">
		<div>
			<img src="images/sectionbanner.png" alt="">
		</div>
		</section>
		<section class="index-content-section-second">
		<div>
			<div class="index-auto">
				<article>公司介绍</article>
				<h6>COMPANY INTRODUCTION</h6>
				<main>${companyInfo.shortintroduction }</main>
				<a class="index-button" href="AboutServlet">查看详情</a>
			</div>
		</div>
		</section>
	</div>
	</section>

	<section class="index-product"> <main>
	<ul>
		<li class="index-active"><a
			href="ProductlistServlet?url=proList&pType=1"></a></li>
		<li><a href="ProductlistServlet?url=proList&pType=2"></a></li>
		<li><a href="ProductlistServlet?url=proList&pType=3"></a></li>
		<li><a href="ProductlistServlet?url=proList&pType=4"></a></li>
	</ul>
	</main> <main></main> <main></main> </section>
	<div class="copyrights">
		Collect from <a href="http://www.cssmoban.com/">网页模板</a>
	</div>
	<section class="index-margin-bottom">
	<div class="index-morecase">
		<span></span> <a href="#">MORE &#62; &#62;</a>
	</div>
	<div class="index-content">
		<div class="product-list">
			<c:forEach items="${prList }" var="pr">
				<div class="am-u-sm-6 am-u-md-6 am-u-lg-4">
					<a href="ProductlistServlet?url=proDetail&pid=${pr.id }"> <img
						src=${pr.mainpic } />
					</a>
				</div>
			</c:forEach>

		</div>
	</div>
	</section>


	<section class="index-margin-bottom">
	<div class="index-morecase">
		<span></span> <a href="Article_list_moreServlet">MORE &#62; &#62;</a>
	</div>
	<div class="index-content">


		<div class="new-index">

			<ul>
				<li><img src="images/productlogo.png" alt=""></li>
				<c:choose>
					<c:when test="${empty nesList }">
				              数据库为空
				    </c:when>
					<c:otherwise>
						<c:forEach items="${nesList }" var="ns" end="0">
							<li><a
								href="Article_listServlet?url=newContent&pid=${ns.id }">
									<h3>${ns.newssheadlines }</h3> <article>${ns.newsprofile }</article>
							</a></li>
						</c:forEach>
					</c:otherwise>
				</c:choose>

			</ul>
			<ul>
				<c:choose>
					<c:when test="${empty nesList }">
				            数据库为空
				    </c:when>
					<c:otherwise>
						<c:forEach items="${nesList }" var="ns" begin="1" end="5">
							<li><a
								href="Article_listServlet?url=newContent&pid=${ns.id }">
									<h3>${ns.newssheadlines }</h3> <article>${ns.newsprofile }</article>
							</a></li>
						</c:forEach>
					</c:otherwise>
				</c:choose>
			</ul>



		</div>
	</div>
	</section>
	<jsp:include page="footer.jsp" />
</body>
</html>